.class Lcom/brixd/niceapp/userinfo/activity/UserInfoModifyActivity$9;
.super Ljava/lang/Object;
.source "UserInfoModifyActivity.java"

# interfaces
.implements Lretrofit/Callback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/userinfo/activity/UserInfoModifyActivity;->commitModify(Ljava/lang/String;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lretrofit/Callback",
        "<",
        "Lorg/json/JSONObject;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/userinfo/activity/UserInfoModifyActivity;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/userinfo/activity/UserInfoModifyActivity;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/userinfo/activity/UserInfoModifyActivity;

    .prologue
    .line 426
    iput-object p1, p0, Lcom/brixd/niceapp/userinfo/activity/UserInfoModifyActivity$9;->this$0:Lcom/brixd/niceapp/userinfo/activity/UserInfoModifyActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public failure(Lretrofit/RetrofitError;)V
    .registers 3
    .param p1, "arg0"    # Lretrofit/RetrofitError;

    .prologue
    .line 430
    const v0, 0x7f0c004e

    invoke-static {v0}, Lcom/brixd/niceapp/util/ToastUtils;->show(I)V

    .line 431
    iget-object v0, p0, Lcom/brixd/niceapp/userinfo/activity/UserInfoModifyActivity$9;->this$0:Lcom/brixd/niceapp/userinfo/activity/UserInfoModifyActivity;

    # invokes: Lcom/brixd/niceapp/userinfo/activity/UserInfoModifyActivity;->hideDialog()V
    invoke-static {v0}, Lcom/brixd/niceapp/userinfo/activity/UserInfoModifyActivity;->access$1000(Lcom/brixd/niceapp/userinfo/activity/UserInfoModifyActivity;)V

    .line 432
    return-void
.end method

.method public bridge synthetic success(Ljava/lang/Object;Lretrofit/client/Response;)V
    .registers 3

    .prologue
    .line 426
    check-cast p1, Lorg/json/JSONObject;

    invoke-virtual {p0, p1, p2}, Lcom/brixd/niceapp/userinfo/activity/UserInfoModifyActivity$9;->success(Lorg/json/JSONObject;Lretrofit/client/Response;)V

    return-void
.end method

.method public success(Lorg/json/JSONObject;Lretrofit/client/Response;)V
    .registers 5
    .param p1, "json"    # Lorg/json/JSONObject;
    .param p2, "response"    # Lretrofit/client/Response;

    .prologue
    .line 436
    iget-object v0, p0, Lcom/brixd/niceapp/userinfo/activity/UserInfoModifyActivity$9;->this$0:Lcom/brixd/niceapp/userinfo/activity/UserInfoModifyActivity;

    # invokes: Lcom/brixd/niceapp/userinfo/activity/UserInfoModifyActivity;->getContext()Landroid/content/Context;
    invoke-static {v0}, Lcom/brixd/niceapp/userinfo/activity/UserInfoModifyActivity;->access$1200(Lcom/brixd/niceapp/userinfo/activity/UserInfoModifyActivity;)Landroid/content/Context;

    move-result-object v0

    const-string v1, "UserInfoModifyPageModifySuccess"

    invoke-static {v0, v1}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    .line 437
    const v0, 0x7f0c00a5

    invoke-static {v0}, Lcom/brixd/niceapp/util/ToastUtils;->show(I)V

    .line 438
    iget-object v0, p0, Lcom/brixd/niceapp/userinfo/activity/UserInfoModifyActivity$9;->this$0:Lcom/brixd/niceapp/userinfo/activity/UserInfoModifyActivity;

    # invokes: Lcom/brixd/niceapp/userinfo/activity/UserInfoModifyActivity;->hideDialog()V
    invoke-static {v0}, Lcom/brixd/niceapp/userinfo/activity/UserInfoModifyActivity;->access$1000(Lcom/brixd/niceapp/userinfo/activity/UserInfoModifyActivity;)V

    .line 440
    const-string v0, "user"

    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v0

    invoke-static {v0}, Lcom/brixd/niceapp/service/UserService;->saveUserModel(Lorg/json/JSONObject;)V

    .line 441
    invoke-static {}, Lcom/brixd/niceapp/bus/BusProvider;->getInstance()Lcom/squareup/otto/Bus;

    move-result-object v0

    new-instance v1, Lcom/brixd/niceapp/bus/event/UpdateUserInfoEvent;

    invoke-direct {v1}, Lcom/brixd/niceapp/bus/event/UpdateUserInfoEvent;-><init>()V

    invoke-virtual {v0, v1}, Lcom/squareup/otto/Bus;->post(Ljava/lang/Object;)V

    .line 442
    iget-object v0, p0, Lcom/brixd/niceapp/userinfo/activity/UserInfoModifyActivity$9;->this$0:Lcom/brixd/niceapp/userinfo/activity/UserInfoModifyActivity;

    invoke-virtual {v0}, Lcom/brixd/niceapp/userinfo/activity/UserInfoModifyActivity;->finish()V

    .line 443
    return-void
.end method
